home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
video
/
zapem-0.000
/
zapem-0
/
zapem
/
palette.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-06-03
|
384b
|
21 lines
#ifndef PAL_H
#define PAL_H
class
Palette
{
private:
unsigned char red[256],green[256],blue[256];
bool allocated[256];
public:
Palette();
int request(int r, int g, int b);
void getData(int c, int &r, int &g, int &b);
void allocate(int c, int r, int g, int b);
bool getAlloc(int i);
void scan(byte *data, int len);
void remap(byte *data, int len, Palette& inpal);
};
#endif